package com.tledu.httpclient;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class HttpClient5 {
    public static void main(String[] args) throws IOException {
//        System.out.println(HttpUtils.get("https://www.baidu.com",new ArrayList<>()));
        String url = "http://1.117.81.216/test/get";
        List<NameValuePair> pairList = new ArrayList<>();
        pairList.add(new BasicNameValuePair("name","cyrus"));
        pairList.add(new BasicNameValuePair("age","18"));
        System.out.println(HttpUtils.get(url,pairList));
    }
}
